<!DOCTYPE html>
<html lang="en">
<head>

    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var i=1;
    while (i<=100){

        if(i<10){
            document.write("0"+i);
        }else {
            document.write(i);
        }
        if (i%10==0){
            document.write("<br/>");
        }

        i++;
    }
</script>
</body>
</html>